var aneObj=function () {
	this.rootx=[];//海葵根坐标
	this.headx=[];//海葵头部x坐标
	this.heady=[];//海葵头部y坐标
	this.alpha=0;
	this.amp=[];//海葵振幅
//	this.len=[];
}

aneObj.prototype.num=50;
aneObj.prototype.init=function () {
	
	for (var i=0;i<this.num;i++) {
		
		this.rootx[i]=i*16+Math.random()*20;
		this.headx[i]=this.rootx[i];
		this.heady[i]=canHeight-250+Math.random()*50;
		this.amp[i]=Math.random()*50+50;
//		this.len[i]=200+Math.random()*50;
	}

}

aneObj.prototype.draw=function () {
	this.alpha+=deltaTime*0.0008;
	var l=Math.sin(this.alpha);
	context2.save();
		context2.strokeStyle="#3b154e";
		context2.lineWidth=16;
		context2.lineCap="round";
	context2.globalAlpha=0.6;
	for (var i=0;i<this.num;i++) {
		context2.beginPath();
        context2.moveTo(this.rootx[i],canHeight);
        this.headx[i]=this.rootx[i]+l*this.amp[i]
        context2.quadraticCurveTo(this.rootx[i],canHeight-100,this.headx[i],this.heady[i]);
		
		context2.stroke();
	}
	context2.restore();
	
	
}